<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/19
 * Time: 17:25
 */

namespace app\api\model;


class UserLevel extends BaseModel
{
    public static function userLevel()
    {
        $res = self::field('id,pay_require_min,pay_require_max')->select();
        $arr = [];
        foreach($res as $k=>$v){
            $id = $v->getData('id');
            $arr[$id] = [$v->getData('pay_require_min'),$v->getData('pay_require_max')];
        }
        return $arr;
    }
}